package org.dromara.teacher.domain.bo;

import org.dromara.teacher.domain.XjTeacherTask;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 教师作业业务对象 xj_teacher_task
 *
 * @author xjb
 * @date 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XjTeacherTask.class, reverseConvertGenerate = false)
public class XjTeacherTaskBo extends BaseEntity {

    /**
     * 作业id
     */
    @NotBlank(message = "作业id不能为空", groups = { EditGroup.class })
    private String taskId;

    /**
     * 作业名称
     */
    @NotBlank(message = "作业名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * 作页开始时间
     */
    @NotNull(message = "作页开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 课程表
     */
    @NotNull(message = "课程表不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tableId;


}
